<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>

<%@page import="com.lovo.bbs.vo.*,com.lovo.bbs.bo.*,java.util.*"%>

<%
	String boardid = request.getParameter("boardid");

	String boardname = request.getParameter("boardname");// 板块名
	if (boardname == null) {
		boardname = "";
	} else {
		boardname = new String(boardname.getBytes("ISO-8859-1"),
				"utf-8");
	}

	int opType = Integer.parseInt(request.getParameter("opType"));

	String queryPage = (String) request.getParameter("queryPage");
	String processMod[] = { "增加版块", "修改版块", "删除版块" };
%>
<html>
	<head>
		<link href="../../../css/admin.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="../../../js/wbs_admin.js"></script>
		<script language="javascript">
		
       	 function validate(){
       	   var msg=document.getElementById("errormsg");
           if(trim(document.frmMain.boardname.value)==""){
           		msg.innerHTML="<br><font color='red'>提示:请填写版块名称</font>"
           		document.frmMain.boardname.focus();
           		return false;
           }
        	return true;       
       	 }
		</script>
	</head>
	<body>
		<form action="BoardUpdateServlet" name="frmMain" method="post"
			onSubmit="return validate();">
			<table class="navigation" style="width: 98%" align="center">
				<tr>
					<td>
						当前位置: 版块管理-->操作-->
						<font color="red"><%=processMod[opType - 1]%></font>
					</td>
				</tr>
			</table>
			<br>
			<table style="width: 90%;" align="center">
				<div class="DialogBody">
					<div class="formArea">
						<div id="errormsg" class="DialogMsg"></div>
						<p>
							&nbsp;&nbsp;版块名称:
							<input type="text" name="boardname" style="width: 200px"
								maxlength="50" value="<%=boardname%>">
							(提示:可以名称前后加上符号,1~50字符)
						<p>
							<input type="submit" name="submit" class="button" value=" 确定 "
								onclick="validate();">
							<input type="button" name="button" class="button" value=" 取消 "
								onclick="preReturn();">
						<p>
							<br>
					</div>
				</div>
			</table>
			<input type="hidden" name="boardid" value="<%=boardid%>">
			<input type="hidden" name="opType" value="<%=opType%>">
			<input type="hidden" name="queryPage" value="<%=queryPage%>">
		</form>
	</body>
</html>
